//
//  FourViewController.m
//  xib-work4
//
//  Created by 金隆 on 2017/4/16.
//  Copyright © 2017年 金隆. All rights reserved.
//

#import "FourViewController.h"
#import "FourTableViewCell.h"

@interface FourViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation FourViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的申请";
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    [self.tableView registerNib:[UINib nibWithNibName:@"FourTableViewCell" bundle:nil] forCellReuseIdentifier:@"twotablecell"];
    
    
    // Do any additional setup after loading the view from its nib.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 110;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    FourTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"twotablecell"];
    if (indexPath.row == 0) {
        cell.orderNumLab.text = @"订单号";
        cell.titleLab.text = @"实用新闻写作";
        cell.isbnLab.text = @"ISBN版本";
        cell.reasonLab.text = @"驳回原因";
        cell.staLab.text = @"教务驳回";
        
    }
    return cell;
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
